package Singleton;

/**
 * 实例产品-1
 * Created by Garden on 2019/5/13.
 */
public class ProductOne implements AbstractProduct {

    private static ProductOne instance;

    private ProductOne(){}

    public static ProductOne getInstance(){
        if (null == instance) {
            instance = new ProductOne();
        }
        return instance;
    }

    @Override
    public void introduce() {
        System.out.println("==== this is product-one ====");
    }
}
